<template>
     <footer class="footer">
        <!--TabBar组件-->
        <van-tabbar v-model="active" route>
  <van-tabbar-item  to="/"  icon="like-o">猜你喜欢</van-tabbar-item>
  <van-tabbar-item   to="/newThings"  icon="search">新品</van-tabbar-item>
  <van-tabbar-item  to="/find"   icon="orders-o">发现</van-tabbar-item>
  <van-tabbar-item  to="/cart"   icon="shopping-cart-o">购物车</van-tabbar-item>
  <van-tabbar-item   to="/user"   icon="contact-o">我的易购</van-tabbar-item>
</van-tabbar>
       </footer>
</template>

<script setup>
import { ref } from 'vue';
   const active = ref(0);
</script>
